package com.mcb_wxc.util;

import com.mcb_wxc.http.HttpRespons;
import com.mcb_wxc.http.HttpRequester;

import java.util.Map;

/**
 * Created by 小生
 * 2019/1/26 13:46.
 */
public class Ceshi {
    public static void fun(){
        try {
            String url = "http://192.168.10.22:8089/api/mobile/projectService/getProjectDetailV6/2.json?tuanId=1316&token=f35baef6-8741-4d5d-9949-ceff592c4d85&language=CHS";
            HttpRequester http = new HttpRequester();
            HttpRespons respons = http.sendGet(url);
            com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(respons.getContent()); // 转换成JSONObject对象
            Map<String, Object> datamap = jsonObject;
            System.out.println(datamap.get("extend"));
        }catch (Exception e) {
            e.getMessage();
        }
    }
    public static void  main(String[] args) {
        fun();
    }

}
